<template>
  <div>
    <el-dialog :visible.sync="dialogVisible" lock-scroll width="30%">
      <span slot="title" style="color: #000000;">
        {{ title }}
      </span>
      <div class="dialog_div_new">
        <div class="dialog_middle">
          <div>
            <p>{{ desc }}</p>
            <p>{{ desc1 }}</p>
          </div>
        </div>
        <div class="dialog_bottom">
          <el-button type="primary" @click.stop="onConfirm">确定</el-button>
        </div>
      </div>
    </el-dialog>
  </div>
</template>

<script>
export default {
  props: {
    title: String,
    desc: String,
    desc1: String,
  },
  data() {
    return {
      dialogVisible: false,
    }
  },
  methods: {
    onConfirm() {
      this.dialogVisible = !this.dialogVisible
    },
  },
}
</script>

<style lang="scss" scoped>
::v-deep .el-dialog {
  margin-top: 33vh !important;
  border-radius: 0.187512rem;
  overflow: hidden;

  .el-dialog__body {
    padding: 0;
  }

  .el-dialog__header {
    width: 100%;
    height: 0.937559rem;
    box-sizing: border-box;
    padding: 0 0.375023rem;
    border-bottom: 1px solid #eeeeee;
    display: flex;
    align-items: center;
    justify-content: space-between;

    span {
      font-size: 15px;
      color: #666;
      font-weight: 600;
    }

    .el-dialog__headerbtn {
      position: static;

      .el-icon-close {
        color: #999;
        font-size: 23px;
      }
    }
  }
}

.dialog_div_new {
  width: 100%;
  // height: 25vh;
  overflow: auto;
  background: #fff;

  .dialog_middle {
    width: 100%;
    // height: calc(100% - 1.12507rem - .281268rem);
    box-sizing: border-box;
    padding: 0 0.375023rem;
    margin-top: 20px;
    display: flex;
    align-items: center;
    overflow: auto;

    .svg_icon {
      width: 0.787549rem;
      height: 0.787549rem;
      margin-top: -0.093756rem;
    }

    div {
      // width: calc(100% - 0.787549rem);
      // margin-left: 0.468779rem;
      box-sizing: border-box;

      p {
        width: 100%;
        font-size: 13px;
        font-family: PingFang SC;
        font-weight: 400;
        line-height: .412526rem;
        color: #666666;
        margin: 0;
      }
    }
  }

  .dialog_bottom {
    width: 100%;
    height: 1.12507rem;
    box-sizing: border-box;
    padding: 0 0.187512rem;
    display: flex;
    align-items: center;
    justify-content: center;

    ::v-deep .el-button {
      width: 1.12507rem;
      height: 0.562535rem;
      text-align: center;
      box-sizing: border-box;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 12px;
      border-radius: 0.093756rem;
      background: #fff;
      border: 1px solid #dddddd;
      color: #666666;
    }

    ::v-deep .el-button--primary {
      background: #1890ff;
      border-color: #1890ff;
      color: #fff;
      margin-left: 0.112507rem;
    }

    ::v-deep .el-button--default {
      margin-right: 0.112507rem;
    }
  }
}
</style>